<template>
	<view>
		
		
		<view v-html="one.content" class="rich"></view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				one: {}
			};
		},
		
		onLoad(option) {
			
			this.loadData(option.id)
			
		},
		methods: {
			loadData(id) {
				this.$http.post('/shop.article/views', { id: id }).then(res => {
				  this.one = res.data.data;
				});
			}
		},
	}
</script>

<style lang="scss">
.rich {
    padding: 15px;
    line-height: 1.8;
  }
  .rich  /deep/ img{
    display: block;
    max-width: 100%;
  }
</style>
